package org.hdl.anima.message;

import java.io.IOException;

import org.hdl.anima.common.io.InputArchive;
import org.hdl.anima.common.io.OutputArchive;

/**
 * 
 * @author qiuhd
 * @since  2014年9月1日
 */
public class HandShakeReq extends RequestAdapter {

	private String clientType;
	private String version;
	private String reconnectToken;
	
	@Override
	public void doSerialize(OutputArchive out) throws IOException {
		out.writeString(clientType);
		out.writeString(version);
		out.writeString(reconnectToken);
	}

	@Override
	public void doDeserialize(InputArchive in) throws IOException {
		this.clientType = in.readString();
		this.version = in.readString();
		this.reconnectToken = in.readString();
	}

	public String getClientType() {
		return clientType;
	}

	public void setClientType(String clientType) {
		this.clientType = clientType;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getReconnectToken() {
		return reconnectToken;
	}

	public void setReconnectToken(String reconnectToken) {
		this.reconnectToken = reconnectToken;
	}
}

